package com.njwb.day15.zqzb.method.anno2;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

//该注解可以写的位置
@Target(value = {ElementType.TYPE,ElementType.FIELD,ElementType.METHOD,ElementType.CONSTRUCTOR})
//该注解可以被运行时所读取
@Retention(value = RetentionPolicy.RUNTIME)
public @interface MyAnnotation {
    String value() default "" ;

    String name();
}
